package com.ruoyi.registration.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.registration.mapper.RegistrationMapper;
import com.ruoyi.registration.domain.Registration;
import com.ruoyi.registration.service.IRegistrationService;

/**
 * 报名信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-23
 */
@Service
public class RegistrationServiceImpl implements IRegistrationService 
{
    @Autowired
    private RegistrationMapper registrationMapper;

    /**
     * 查询报名信息
     * 
     * @param regisId 报名信息主键
     * @return 报名信息
     */
    @Override
    public Registration selectRegistrationByRegisId(Long regisId)
    {
        return registrationMapper.selectRegistrationByRegisId(regisId);
    }

    /**
     * 查询报名信息列表
     * 
     * @param registration 报名信息
     * @return 报名信息
     */
    @Override
    public List<Registration> selectRegistrationList(Registration registration)
    {
        return registrationMapper.selectRegistrationList(registration);
    }

    /**
     * 新增报名信息
     * 
     * @param registration 报名信息
     * @return 结果
     */
    @Override
    public int insertRegistration(Registration registration)
    {
        
        return registrationMapper.insertRegistration(registration);
    }

    /**
     * 修改报名信息
     * 
     * @param registration 报名信息
     * @return 结果
     */
    @Override
    public int updateRegistration(Registration registration)
    {
        return registrationMapper.updateRegistration(registration);
    }

    /**
     * 批量删除报名信息
     * 
     * @param regisIds 需要删除的报名信息主键
     * @return 结果
     */
    @Override
    public int deleteRegistrationByRegisIds(Long[] regisIds)
    {
        return registrationMapper.deleteRegistrationByRegisIds(regisIds);
    }

    /**
     * 删除报名信息信息
     * 
     * @param regisId 报名信息主键
     * @return 结果
     */
    @Override
    public int deleteRegistrationByRegisId(Long regisId)
    {
        return registrationMapper.deleteRegistrationByRegisId(regisId);
    }

    @Override
    public List<Registration> selectRegistrationNofeesByregisId() {
      return registrationMapper.selectRegistrationNofeesByregisId();
    }

}
